var accountingIntegrationDashboardApp  = angular.module('accounting-integration-dashboard', ['ngRoute', 'xeditable','chieffancypants.loadingBar', 'ui.bootstrap']);
var baseMaintenanceCtrl                = 'baseMaintenanceCtrl';
var urlControlCalidadNavigation        = 'app/navigation/navigateToControlCalidad/';

accountingIntegrationDashboardApp.run(function(editableOptions) {
    editableOptions.theme = 'bs3';
});

accountingIntegrationDashboardApp.config(['$routeProvider', function($routeProvider) {
    $routeProvider
        .when('/control-calidad/registrar-solicitud', {
            templateUrl : baseApp + urlControlCalidadNavigation + 'registrar-solicitud',
            controller  : baseMaintenanceCtrl
        })

        .when('/control-calidad/asignar-solicitud', {
            templateUrl : baseApp + urlControlCalidadNavigation + 'asignar-solicitud',
            controller  : baseMaintenanceCtrl
        })
        
        .when('/control-calidad/atender-solicitud', {
            templateUrl : baseApp + urlControlCalidadNavigation + 'atender-solicitud',
            controller  : baseMaintenanceCtrl
        })

        .when('/control-calidad/registrar-incidencia', {
            templateUrl : baseApp + urlControlCalidadNavigation + 'registrar-incidencia',
            controller  : baseMaintenanceCtrl
        })

        .otherwise({
            redirectTo: '/control-calidad/registrar-solicitud'
        });

}]);

accountingIntegrationDashboardApp.controller('IndexCtrl', function ($scope){

});